package com.celesea.workflow.core.vo;

import com.celesea.framework.dao.TenantFilterAdapter;
import com.celesea.framework.util.EnvUtil;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-11-21 21:43
 */
public class WorkflowFilter extends TenantFilterAdapter {
    private Integer workflowType;
    private List<Integer> workflowStatus;
    private String keyword;
    private String statusFlag;
    private String applyId;

    public WorkflowFilter(WorkflowNoticeRequest request, Integer workflowType) {
        super(EnvUtil.getTenantId());
        this.workflowType = workflowType;
        this.keyword = request.getKeyword();
        this.statusFlag = request.getStatusFlag();
        this.applyId = EnvUtil.getLoginUser().getId();
    }

    public Integer getWorkflowType() {
        return workflowType;
    }

    public void setWorkflowType(Integer workflowType) {
        this.workflowType = workflowType;
    }

    public List<Integer> getWorkflowStatus() {
        return workflowStatus;
    }

    public void setWorkflowStatus(List<Integer> workflowStatus) {
        this.workflowStatus = workflowStatus;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(String statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getApplyId() {
        return applyId;
    }

    public void setApplyId(String applyId) {
        this.applyId = applyId;
    }
}
